package com.xrit.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xrit.mapper.MenuMapper;
import com.xrit.pojo.Menu;
import com.xrit.service.MenuService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import redis.clients.jedis.JedisPool;

import java.util.List;


@ContextConfiguration({"classpath:beans-service.xml"})
@RunWith(SpringJUnit4ClassRunner.class)
@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Test
    public void test(){
        System.out.println("aaaaa");
        List<Menu> menus = menuMapper.queryMenu(1);
        System.out.println(menus);
    }


    @Override
    public List<Menu> getDynamicMenu(Integer uid) {
        List<Menu> menus = menuMapper.queryMenu(1);
        return menus;
    }
}
